export default{
	namespaced:true,
	
	state:()=>({
		latitude:0,
		longitude:0,
		name:''
	}),
	mutations:{
		update(state,latitude,longitude,name){
			state.latitude=Number(latitude)
			state.longitude=Number(longitude)
			state.name=name
			this.commit('m-map/save')
		},
		save(state){
			uni.setStorageSync('latitude',state.latitude)
			uni.setStorageSync('longitude',state.longitude)
			uni.setStorageSync('name',state.name)
		}
	},
	getters:{
		
	}
}